package com.scott.excel.read;

import java.util.HashMap;
import java.util.Map;

public class ExportUtil {
	public static String EXPORT_PATH = "C:/luo/temp/networkpass_csv/";
	
	public static Map<String, Integer> IDX_MAPPING = new HashMap<String, Integer>();
	/**
	 * 通过 字段列符获取 索引
	 * @param str
	 * @return
	 */
	static {
		String key = "";
		for(int i=0; i<= 25; i++) {
			key = "" + ((char) (65 + i));
			IDX_MAPPING.put(key, (i));
			
			IDX_MAPPING.put("A" + key, (i) + 26);
			IDX_MAPPING.put("B" + key, (i) + 52);
			IDX_MAPPING.put("C" + key, (i) + 78);
		}
	}
	
	/**
	 * 获取列对应的索引值
	 * @return
	 */
	public static Map<String, Integer> getIDX_MAPPING() {
		return IDX_MAPPING;
	}
	
	/**
	 * 输出路径
	 * @return
	 */
	public static String getEXPORT_PATH() {
		return EXPORT_PATH;
	}
}
